const mongoose = require("mongoose");

const Schema = new mongoose.Schema({
    userId: { type: mongoose.SchemaTypes.ObjectId },
    name: { type: String },
    avatar: { type: String },
    phone: { type: String },
    authoritylever: { type: Number }, // 1 用户 2 超级管理员
    livein: { type: String },
    department: { type: String },
    staying: [{ type: String }],
})

module.exports = mongoose.model("AdminMessage", Schema);
